package com.huanzhidadi.singleweb.fastjson.filter;

import com.alibaba.fastjson2.filter.PropertyFilter;

/**
 * 剔除某些字段
 */
public class IgnorePropertyFilter implements PropertyFilter {
    @Override
    public boolean apply(Object object, String name, Object value) {
        if (name.equalsIgnoreCase("ccc")) {
            return false;
        }
        if (name.equalsIgnoreCase("ddd")) {
            return false;
        }
        return true;
    }
}
